home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Belgian Amiga Club - ADF Collection
/
BS1 part 65.zip
/
BS1 part 65
/
Math Visin v2.1 disk 1.adf
/
Arexx.WB
/
Contour
/
EnterZoom
< prev
next >
Wrap
Text File
|
1992-02-12
|
1KB
|
32 lines
/* EnterZoom Enter Screen Coordinates as center and zoom 20-Nov-89 dh */
/* This program allows you to enter the coordinates of the screen in the
popular "Mandelbrot" format, which gives the coordinates of the center of
the screen, and the zoom. The zoom is considered the inverse of the radius
of the largest circle which could fit in the screen. Since most screens
are not square, the aspect ratio of the screen is calculated using the
numbers entered below, and the X values are adjusted accordingly so as to
give a true aspect ratio in the picture. */
ScreenWidth = 10.25 /* dimensions of your monitor's screen */
ScreenHeight = 7 /* assuming wider than tall */
/*------------------------------------------------------------------------ */
ADDRESS "MathVision"
OPTIONS RESULTS
NUMERIC DIGITS 14
OPTIONS PROMPT "Enter XCENTER YCENTER ZOOM: "
PULL xcenter ycenter zoom
zoom = 1/zoom
ymin ycenter-zoom
ymax ycenter+zoom
aspect_ratio = ScreenWidth/ScreenHeight
xmin xcenter-zoom*aspect_ratio
xmax xcenter+zoom*aspect_ratio
EditScreenToFront